package com.dinim.matrix.twodimensional;

import com.dinim.matrix.Vector;

public class Vector3 extends Vector implements IPoint2D{

	public static final int X = 0;
	public static final int Y = 1;
	public static final int A = 2;
	
	public Vector3() {
        super(new double[]{0, 0, 1});
	}

	public Vector3(double x, double y){
		super(new double[]{x, y, 1});
	}
	
	public Vector3(double x, double y, double a){
		super(new double[]{x, y, a});
	}

	public Vector3(Vector3 vector){
		super(new double[]{vector.getX(), vector.getY(), 1});
	}
	
	public double getX(){
		return get(Vector3.X, Vector3.FRIST_COLUMN);
	}
	
	public double getY(){
		return get(Vector3.Y, Vector3.FRIST_COLUMN);
	}
	
	public void setX(double x){
		set(Vector3.X, Vector3.FRIST_COLUMN, x);
	}
	
	public void setY(double y){
		set(Vector3.Y, Vector3.FRIST_COLUMN, y);
	}
}
